home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Processes / Process.h < prev    next >
Text File  |  1997-06-28  |  717b  |  39 lines

  1. // Process.h
  2.  
  3. #ifndef Process_h
  4. #define Process_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class Process
  11.   {
  12.     private:
  13.         ProcessSerialNumber psn;
  14.     
  15.     public:
  16.         Process( ProcessSerialNumber thePSN )
  17.           : psn( thePSN )
  18.           {}
  19.  
  20.         enum ApplicationProcess{ application };
  21.         enum FrontProcess{ front };
  22.  
  23.         Process( ApplicationProcess );
  24.         Process( FrontProcess );
  25.         
  26.         static const Process& Application();
  27.         static Process Front()                                 { return Process( front ); }
  28.         
  29.         bool operator==( const Process& ) const;
  30.         bool operator!=( const Process& r ) const        { return !(*this == r); }
  31.         
  32.         void Wake() const;
  33.         void MoveToFront() const;
  34.         
  35.         const ProcessSerialNumber& Number() const        { return psn; }
  36.   };
  37.  
  38. #endif
  39.